using UnityEngine;

namespace FrameworkBase.Example
{
    public class UI : MonoBehaviour
    {
        private void Awake()
        {
            EventGamePass.Register(OnGamePass);
        }

        private void OnGamePass()
        {
            transform.Find("Canvas/PanelGamePass").gameObject.SetActive(true);
        }

        private void OnDestroy()
        {
            EventGamePass.UnRegister(OnGamePass);
        }
    }
}